//
//  EventPhotoView.h
//  Gruphoto
//
//  Created by Thao Nguyen Huy on 1/9/13.
//  Copyright (c) 2013 CNC Software. All rights reserved.
//

#import <UIKit/UIKit.h>

@protocol EventPhotoViewDelegate;

@interface EventPhotoView : UIView {
    id <EventPhotoViewDelegate> delegate;
    UIView *footerView;
    UILabel *numberLikesLabel;
    UIImageView *selectedImageView;
    NSDictionary *imageInfo;
}

@property (nonatomic, assign) id <EventPhotoViewDelegate> delegate;

@property (nonatomic, retain) IBOutlet UIView *footerView;
@property (nonatomic, retain) IBOutlet UILabel *numberLikesLabel;
@property (nonatomic, retain) IBOutlet UIImageView *selectedImageView;
@property (retain, nonatomic) __block IBOutlet UIButton *buttonImageThumbnail;
@property (retain, nonatomic) IBOutlet UIActivityIndicatorView *loading;

+ (id)viewFromNibWithData:(NSDictionary*)data;
- (IBAction)selectButtonPressed:(id)sender;
- (void)displayFooter;
- (void)hideFooter;
- (void)displayImage;
+ (id)viewFromNib;

@end

@protocol EventPhotoViewDelegate <NSObject>
- (void)didSelectPhotoAtIndex:(NSInteger)index;

@end
